package com.hjb.service.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hjb.service.domain.product.Product;
import com.hjb.service.domain.product.ProductExample;
import com.hjb.service.mybatis.BaseMapper;

public interface ProductMapper extends BaseMapper<Product> {
    int countByExample(ProductExample example);

    int deleteByExample(ProductExample example);

    List<Product> selectByExample(ProductExample example);

    int updateByExampleSelective(@Param("record") Product record, @Param("example") ProductExample example);

    int updateByExample(@Param("record") Product record, @Param("example") ProductExample example);
    
    /**
	 * 查询产品列表
	 * @param params
	 * @return
	 */
	public List<Map<String,Object>> queryProductList(Map<String,Object> params);
	
	/**
	 * 更新产品可购金额
	 * @param params
	 * @return
	 */
	int updateProductBanlance(Map<String, Object> params);
}